<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/include/taglibs.jsp" %>
<html>
<head>
    <%@include file="/include/header.html" %>
    <script type="text/javascript" src="${ctx}/appjs/tenant/user/user.js"></script>
</head>

<script type="text/javascript">
    $('#topLink', window.parent.document).html(function (i, origText) {
        return '<ol class="breadcrumb">' +
            '<li class="breadcrumb-item">' +
            '<a href="">主页</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a>平台设置</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a>平台角色设置</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<strong>增加平台账户</strong>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a href="javascript:window.history.back()"><i class="fa fa-times"></i> 返回</a>' +
            '</li>' +
            '</ol>';
    });
</script>

<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox">
                <div class="ibox-title">
                    <div class="columns pull-left">
                        <h5 class="font-bold">添加平台账户</h5>
                    </div>
                    <div class="ibox-tools">
                        <a class="close-link">
                            <i class="fa fa-times"></i>
                        </a>
                    </div>
                </div>

                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="frmUser">
                        <input id="tenantUserId" name="tenantUserId" type="hidden">
                        <div class="form-group row">
                            <label class="col-sm-2 col-form-label text-right">登录帐号：</label>
                            <div class="col-sm-8">
                                <input id="loginName" name="loginName" autocomplete="off" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-2 col-form-label text-right">真实姓名：</label>
                            <div class="col-sm-8">
                                <input id="realName" name="realName" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-2 col-form-label text-right">密码：</label>
                            <div class="col-sm-8">
                                <input id="password" name="password"  class="form-control" type="password" autocomplete="new-password">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-2 col-form-label text-right">联系方式：</label>
                            <div class="col-sm-8">
                                <input id="mobile" name="mobile" class="form-control"
                                       type="text">
                                <li><i class="fa fa-bell-o"></i> 请填写正确的手机号码,修改密码时需要手机验证码</li>
                            </div>
                        </div>
                        <%--<div class="form-group row">--%>
                        <%--<label class="col-sm-2 col-form-label text-right">组织：</label>--%>
                        <%--<div class="col-sm-8">--%>
                        <%--<input id="platformOrgId" name="platformOrgId" type="hidden"> <input--%>
                        <%--id="orgName" name="orgName" class="form-control" type="text"--%>
                        <%--style="cursor: pointer;" onclick="user.openOrg()"--%>
                        <%--placeholder="--请选择--" autocomplete="off">--%>
                        <%--</div>--%>
                        <%--</div>--%>
                        <div class="form-group row">
                            <label class="col-sm-2 col-form-label text-right">E-mail：</label>
                            <div class="col-sm-8">
                                <input id="email" name="email" class="form-control"
                                       type="email">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-2 col-form-label text-right">状态:</label>
                            <div class="col-sm-8">
                                <label class="radio-inline"> <input type="radio"
                                                                    name="status" value="0" checked/> 正常
                                </label> <label class="radio-inline"> <input type="radio"
                                                                             name="status" value="1" /> 冻结
                            </label>
                            </div>
                        </div>

                        <div class="form-group row">
                            <label class="col-sm-2 col-form-label text-right">角色:</label>
                            <div class="col-sm-8">
                                <select name="tenantRoleId" id="tenantRoleId"
                                        class="form-control chosen-select"
                                        style="width: 100%">
                                    <option value="" selected="selected">--请选择--</option>
                                    <c:forEach items="${roles}" var="bean">
                                        <option value="${bean.tenantRoleId}">${bean.roleName}
                                        </option>
                                    </c:forEach>
                                </select>

                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-3 col-sm-offset-8 text-right">
                                <button type="submit" class="btn btn-success">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/javascript">
    addUser.init();
</script>
</html>
